import { App } from "vue";
import { formatUtsString } from "@/utils/date-format";

export default function registerProperties(app: App) {
  // 在app.config.globalProperties里面添加的属性可以在全局使用
  app.config.globalProperties.$filters = {
    formatTime(value: string) {
      return formatUtsString(value);
    },
  };
}
declare module "@vue/runtime-core" {
  interface ComponentCustomProperties {
    $filters: any;
  }
}
